<?php
/**
 * User: aka
 * Time: 0:31
 */

namespace app\tenno\model;

use think\Model;

class Message extends Model
{
    public function scopeDeleteState($query, $deleteState)
    {
        $query->where('delete_state', '=', $deleteState)
            ->field('delete_time, delete_state',true)
            ->order('id','desc');
    }
}